class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        int len = nums.size();
        for(int i = 0; i < len; ++i){
            for(int j = i + 1; j < len; ++j){
                if(nums[i] + nums[j] == target){
                    vector<int> ret = {i, j};
                    return ret;
                }
            }
        }
        return {};
    }
};